package com.farmer.service;

import com.farmer.pojo.Goods;
import com.farmer.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.farmer.utils.Result;

import java.text.ParseException;

/**
* @author 86183
* @description 针对表【orders(订单信息表)】的数据库操作Service
* @createDate 2024-04-28 14:30:21
*/
public interface OrdersService extends IService<Orders> {
    Result add(Orders orders);

    Result delete(Integer id);

    Result getById(Integer id);

    Result getOrdersListByToken(String token);


//    Result getOrdersListByToken(String token, Integer pageNum, Integer pageSize);

    Result getAll();

    Result update(Orders orders);



    Result getByOrderIdLike(String OrderId);

    /*
     * 分页查询*/
    Result page(Integer pageNum, Integer pageSize);

//    Result page1(Integer pageNum, Integer pageSize, String token);

    /*
     * 发货方法*/
//    Result shipOrder(Integer id);

    /*
    * 确认收货*/
//    Result confirmReceipt(Integer id);
}
